
export const hasPermission=(name)=>{
    let permissions = window.sessionStorage.getItem('permissions');
    let str = JSON.stringify(permissions)
    let status = false;

    if(permissions!=null && permissions!=undefined && permissions.length>0){
       if(str.indexOf(name)!=-1){
           status = true
       }
    }
    return status;
}